package com.hafu.service;

import com.hafu.dao.SpInfoDao;
import com.hafu.model.SpInfo;

import java.util.ArrayList;

public class SpInfoService {
    private SpInfoDao spInfoDao = new SpInfoDao();
    public Boolean addSpInfo(SpInfo sp){
        return spInfoDao.addSpInfo(sp);
    }
    public Boolean deleteSpInfo(int id){
        return spInfoDao.deleteSpInfo(id);
    }
    public ArrayList<SpInfo> getSpInfoByName(SpInfo sp){
        return spInfoDao.getSpInfoByName(sp);
    }
    public Boolean updateSplnfo(SpInfo sp){
        return spInfoDao.updateSplnfo(sp);
    }
}
